home *** CD-ROM | disk | FTP | other *** search
- /* diagnostic - spit out error message */
-
- /* copyright (c) 1982 by the Toolsmith */
-
- diagnostic(fatal, args)
- boolean fatal;
- char *args;
- {
- extern unsigned lenstr(), write();
- extern exit();
- register char **a;
-
- if(fatal)
- write(stderr, "PANIC!!! ", 9);
- for(a = &args; *a != NULL; ++a)
- write(stderr, *a, lenstr(*a));
- write(stderr, "\n", 1);
- if (fatal)
- exit(NO); /* error exit to OS */
- }